package ru.spbu.math.seabattle.client.messages;

import java.io.Serializable;

import ru.spbu.math.seabattle.entity.PlayerID;

public class OnPlayerAddedMessage implements Serializable {

	private static final long serialVersionUID = 1L;

	private final PlayerID id;
	private final String name;
	private final boolean added;
	
	public OnPlayerAddedMessage(boolean added, PlayerID id, String name) {
		this.added = added;
		this.id = id;
		this.name = name;
	}

	public PlayerID getId() {
		return id;
	}

	public String getName() {
		return name;
	}
	
	public boolean isAdded() {
		return added;
	}
}
